import request from '@/utils/request'

// 查询期货品种标准合约列表
export function listFutureStandardInfor(query) {
  return request({
    url: '/invest/futureStandardInfor/list',
    method: 'get',
    params: query
  })
}

// 查询期货品种标准合约详细
export function getFutureStandardInfor(id) {
  return request({
    url: '/invest/futureStandardInfor/' + id,
    method: 'get'
  })
}

// 新增期货品种标准合约
export function addFutureStandardInfor(data) {
  return request({
    url: '/invest/futureStandardInfor',
    method: 'post',
    data
  })
}

// 修改期货品种标准合约
export function updateFutureStandardInfor(data) {
  return request({
    url: '/invest/futureStandardInfor',
    method: 'put',
    data
  })
}

// 删除期货品种标准合约
export function delFutureStandardInfor(id) {
  return request({
    url: '/invest/futureStandardInfor/' + id,
    method: 'delete'
  })
}
